<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>添加员工</title>
<link href="css/form.css" rel="stylesheet" type="text/css">
<link href="css/button.css" rel="stylesheet" type="text/css">
</head>
<body>
<section><a href="logout">注销</a>&nbsp;&nbsp;您现在的位置：<a href="admin.jsp">首页</a>&gt;&gt;<a href="/salary_manage/staff">人员管理</a>&gt;&gt;添加员工</section>
<div id="form" style=" height: 400px; margin-top: 70px;" class="form">
<form action="/salary_manage/staff" method="post">
	<p><label>员工编号&nbsp;&nbsp;</label><input type="text" name="staffSno" required/></p>
	<p><label>姓名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><input type="text" name="name"required/></p>
	<p><label>性别&nbsp;&nbsp;</label>
	<input type="radio" name="sex" value="男" checked="checked" class="radio"/><label>男</label>
	<input type="radio" name="sex" value="女" class="radio"/><label>女</label></p>
	<p><label>所在部门&nbsp;&nbsp;</label>
	<select name="departmentSno" id="departmentSno" onchange="Change_second_selectwords();">
	<option value="">请选择</option>
	<c:forEach items="${list}" var="dep">
  	<option value="${dep.departmentSno}">${dep.departmentName}</option>
	</c:forEach>
	</select></p>
	<p><label>岗位&nbsp;&nbsp;</label><select name="post" id="post"></select> </p>
    <script type="text/javascript" src="js/post.js"></script>
	<p><label>用户名&nbsp;&nbsp;&nbsp;&nbsp;</label><input type="text" name="username"/></p>
	<p><label>密码&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><input type="text" name="password"/></p>	
	<input type="hidden" name="method" value="add"/>
	<p class="submit"><input type="submit"class="bluebuttoncss" value="提交"/></p>
</form>
</div>
<div class="demo_con">
<button type="button" class="button blue larrow" onclick="window.location.href = 'admin.jsp'">返回首页</button>
</div>
</body>
</html>